package com.platform.service;

import com.platform.common.ServerResponse;
import com.platform.pojo.RolePermission;

import java.util.List;
import java.util.Map;

public interface IRolePermissionService {

    ServerResponse<String> insert(Map param);

    ServerResponse<String> del(Integer id);

    /**
     * 根据角色查询权限
     * @param roleCode
     * @return
     */
    ServerResponse<List<Integer>> selectByParam(String roleCode);

    ServerResponse<String> update(RolePermission rolePermission);

    ServerResponse<List<Map>> selectAllPermission(String roleCode);

    ServerResponse<String> addRolePermission(String roleCode,String perIdArr);


}
